#include "simulator/simulator.h"

namespace simulator {
    std::shared_ptr<TargetMachine> Simulator::target_machine() {
        return m_target_machine;
    }

    void Simulator::add_timer(std::shared_ptr<Timer> timer) {
        m_timers.emplace_back(std::move(timer));
    }

    void Simulator::next_cycle() {
        m_timers[0]->increment_cycle();
    }
}